<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>


<body>
    <button>3213
        <form method="post">
            <textarea id="mytextarea">Hello, World!</textarea>
        </form>
    </button>
    <script src="./libs/tinymce_5.5.1/tinymce.min.js"></script>

    <script>
        tinymce.init({
            selector: '#mytextarea'
        });
        let button = document.querySelector('button')
        button.onclick = function () {
            console.log(tinyMCE.editors['mytextarea'].getContent())
        }
    </script>
</body>

</html>